﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EsWebUI.Models;
using PagerControl;
using DataModel;

namespace EsWebUI.Controllers
{

    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "欢迎使用 ASP.NET MVC!";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult MyWeb()
        {
            UserInfoData ud = new UserInfoData();

            return View(ud.GetUsers(1));
        }

        [HttpPost]
        public PartialViewResult uslist(int d)
        {
            UserInfoData ud = new UserInfoData();

            return PartialView(ud.GetUsers(d));
        }
    }
}
